home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7470 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  882 b 

  1. Path: stern.fokus.gmd.de!news
  2. From: Watson <sayegh@fokus.gmd.de>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Formatting Disks in C++
  5. Date: Fri, 23 Feb 1996 14:13:11 +0100
  6. Organization: GMD FOKUS - Research Institute for Open Communication Systems
  7. Message-ID: <312DBD67.2C3B@fokus.gmd.de>
  8. References: <4gfvrf$drm@newsbf02.news.aol.com>
  9. NNTP-Posting-Host: pollux.fokus.gmd.de
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-2
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)
  14.  
  15. BillsFan10 wrote:
  16. > How do you format a disk in C++?
  17. For DOS:
  18. system("format a:");
  19.  
  20. For SCO Unix:
  21. system("dosformat /dev/fd...");
  22.  
  23. For Linux:
  24. system("mformat a:");
  25.  
  26. For all others:
  27. cout << "Hey user! Format a disk for me!" << endl;
  28.  
  29. -- 
  30. *    Greetinx from Watson (sayegh@fokus.gmd.de)
  31.     http://www.fokus.gmd.de/ovma/employees/sayegh/entry.html
  32.     signal(SIGSEGV,SIG_IGN);
  33.